<?php

namespace App\Http\Controllers;

use Illuminate\Http\Request;
use App\Jobs\redisTrade;

class tradeController extends Controller
{
    //
    public function trade()
    {
        //传递订单的id
        $data = [
            'tid' => date('T-m-d H:i:s').uniqid(),
        ];

        $job = new redisTrade($data);

        $job->dispatch($job)->onQueue('trade');

        return '订单方法';
    }

}
